Rename

Entity-Related Operation Statement

Syntax samples

RENAME {AS} <new entity name>

RENAME EntB

RENAME AS EntB

RENAME AS ENT(Var2)

Description

Renames the processing entity to the new entity name. After a RENAME statement is encountered, the entity then searches forward in the process list and again from the beginning until a process is found at the current location that has been defined for the new entity type. No further logic will be executed for the entity under its original name. Use RENAME to start collecting statistics for an entity under a new name. Usually, the easiest and most efficient way to rename an entity is simply by using the new name as the output entity in the routing.

Valid In

The operation column of process edit tables only.

Components

<new entity name>

The new name of the processing entity. ENT() may be substituted for the entity name.

Explicit Entity Actions

With RENAME, statistics and cost continue on with the entity.

Implicit Entity Actions

ProModel allows you to define the RENAME action implicitly as part of the routing definition. To do this, define a route block with a different input and output name and the New Entity option unchecked.

Example

The following example shows how two entities, EntA and EntB, join together at Loc2. Once the join is complete, ProModel renames the resulting entity EntC and processes it according to a normal distribution N(9.4,.3). RENAME is the last statement in the process because as soon as you rename an entity, ProModel searches the processing logic for a process for the entity with the new name.

Process Table

Entity

Location

Operation (min)

EntA

Loc1

WAIT 1.5 min

EntB

Loc2

JOIN 1 EntA

RENAME AS EntC

EntC

Loc2

WAIT N(9.4,.3)

Routing Table

Blk

Output

Destination

Rule

Move Logic

1

EntA

Loc2

JOIN 1

 

1

EntC

Loc3

FIRST 1

 

See Also

COMBINE, SPLIT AS, and GROUP.